package model;

import util.Toolsutil;



/**
 * TRole entity. @author MyEclipse Persistence Tools
 */

public class TRole implements java.io.Serializable {

	// Fields

	private Integer roleid;
	private String rolename;
	private String description;
	private String createtime;
	private Integer deepth;
	private Integer parentid;

	// Constructors

	/** default constructor */
	public TRole() {
	}

	/** full constructor */
	public TRole(String rolename, String description, String createtime,
			Integer deepth, Integer parentid) {
		this.rolename = rolename;
		this.description = description;
		this.createtime = createtime;
		this.deepth = deepth;
		this.parentid = parentid;
	}

	// Property accessors

	public Integer getRoleid() {
		return this.roleid;
	}

	public void setRoleid(Integer roleid) {
		this.roleid = roleid;
	}

	public String getRolename() {
		return this.rolename;
	}

	public void setRolename(String rolename) {
		this.rolename = rolename;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getCreatetime() {
		return Toolsutil.GetDateFormat(createtime);
	}

	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}

	public Integer getDeepth() {
		return this.deepth;
	}

	public void setDeepth(Integer deepth) {
		this.deepth = deepth;
	}

	public Integer getParentid() {
		return this.parentid;
	}

	public void setParentid(Integer parentid) {
		this.parentid = parentid;
	}

}